package chapter10;

/**
 * Created by V5470-I5 on 2016/4/10.
 */
import java.io.*;
public class StandardOut {
    public static void main(String[] args) throws IOException{
        try (PrintStream printStream= new PrintStream(
                new FileOutputStream(args[0])
        )){
            System.setOut(printStream);
            System.out.println("HelloWorld");
        }
    }
}
